//login.js
const app = getApp()

Page({
  data: {
    type: '',
    content: '',
  },
  onLoad:function(options){
    // 页面初始化 options为页面跳转所带来的参数
    var that = this
    var type = options.type
    that.setData({
      type: type,
    })
  },
  onShow:function(){
    var that = this
    app.http.get('/wechat/findProtocolInfo?type=' + that.data.type).then(res =>{
      if(res.status == '200'){
        that.setData({
          content: res.data
        })
      }
    })
  }
})
